package com.itheima.feignclient.base;

import com.itheima.bestcommon.pojo.User;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * UserApi
 *
 * @author liliudong
 * @version 1.0
 * @description
 * @date 2023/7/20 16:34
 */
public interface UserApi {
    /**
     * 根据ID获取用户
     *
     * @param id
     * @return
     */
    @GetMapping("/user/{id}")
    User getById(@PathVariable Integer id);
}
